package com.taotao.service.ipml;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.mapper.TbItemDescMapper;
import com.taotao.pojo.TbItemDesc;
import com.taotao.service.IItemDescService;

@Service
public class ItemDescServiceIpml implements IItemDescService {
	@Autowired
	private TbItemDescMapper itemDescMapper;

	@Override
	public TaotaoResult saveItemDesc(TbItemDesc itemDesc) {
		try {
			this.itemDescMapper.insert(itemDesc);
			return TaotaoResult.ok();
		} catch (Exception e) {
			throw new RuntimeException("添加商品描述信息出现异常");
		}
	}

}
